package org.dromara.pill.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.pill.domain.PillDrug;
import org.dromara.pill.domain.bo.PillDrugBo;
import org.dromara.pill.domain.vo.PillDrugVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;

/**
 * 药品信息Mapper接口
 *
 * @author Lion Li
 * @date 2023-07-07
 */
public interface PillDrugMapper extends BaseMapperPlus<PillDrug, PillDrugVo> {
    @DataPermission({
        @DataColumn(key = "drug_name", value = "d.drug_name"),
    })
    Page<PillDrugVo> selectPagePillDrugVoList(@Param("page") Page<PillDrug> page, @Param(Constants.WRAPPER) Wrapper<PillDrug> queryWrapper);

}
